﻿using System;
using System.Collections.Generic;
using System.Drawing;
//using System.Linq;
using System.Text;
//using System.Threading.Tasks;
using TRicheControl.DefaultControlStyles.Helper;
using TRicheControl.Interface.ControlStyle;

namespace TRicheControl.DefaultControlStyles
{
    public class ListBoxItemStyle : IListBoxItemStyle
    {
        private SolidBrush mSingerItemBrush;
        private SolidBrush mEvenItemBrush;

        public ListBoxItemStyle()
        {
            mSingerItemBrush = new SolidBrush(Color.Gray);
            mEvenItemBrush = new SolidBrush(Color.White);
        }

        public void DrawSingerItem(System.Drawing.Graphics g, System.Drawing.Rectangle rect)
        {
            DrawHelper.SetGraphics(g);
            g.FillRectangle(mSingerItemBrush, rect);
        }

        public void DrawEvenItem(System.Drawing.Graphics g, System.Drawing.Rectangle rect)
        {
            DrawHelper.SetGraphics(g);
            g.FillRectangle(mEvenItemBrush, rect);
        }

        public void DrawMouseEnterItem(System.Drawing.Graphics g, System.Drawing.Rectangle rect)
        {
        }

        public void DrawMouseDownItem(System.Drawing.Graphics g, System.Drawing.Rectangle rect)
        {
        }

        public void DrawFousedItem(System.Drawing.Graphics g, System.Drawing.Rectangle rect)
        {
        }

        public void DrawString(string str, Font font, Color foreColor, Graphics g, Rectangle rect)
        {
        }
    }
}
